package com.fhz.mvitest2.ui

import com.fhz.mvitest.entity.BannerEntity
import com.fhz.mvitest.entity.ResponseEntity

/**
 * 时间:2023/5/20
 * @author Mr.Feng
 * 简述: TODO
 */
sealed class BannerUIState {
    //成功
    data class Success(var banner: ResponseEntity<List<BannerEntity>>): BannerUIState()

    //失败
    data class Fail(var fail: ResponseEntity<List<BannerEntity>>) : BannerUIState()

    //加载中
    object loading: BannerUIState()

    object Init:BannerUIState()
}